<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         /*复合用法
            1.用空格隔开
            2.顺序可以换
            3.可以只取一个值，放在后面能覆盖前面的值*/
        /*background-size属性只能单独使用*/
        .d{
            width: 500px;
            height: 500px;
            /* background-color: green;
            background-image: url(../../img/JK.png);
            background-repeat: no-repeat;
            background-attachment: fixed; */
            background: green url(../../img/JK.png) no-repeat fixed;
        }
    </style>
</head>
<body>
    <div class="d"></div>
    <img src="../../img/JK.png" alt="" title="小姐姐">
</body>
</html>